package com.seckill.act.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.seckill.act.pojo.SkuAct;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-03-04
 */
@Repository
public interface SkuActMapper extends BaseMapper<SkuAct> {
    @Select("SELECT sku_id FROM tb_sku_act WHERE activity_id=#{id} ORDER BY create_time desc limit 4")
    List<String> findSkuById(String id);
}
